package com.hebeu.xwl.utils;

import java.util.Random;
//调用生成指定位数的随机数
public class CodeUtil {
    public static String generateVerifyCode(int number) {
        Random random = new Random();
        StringBuilder builder = new StringBuilder();
        for (int i = 1; i <= number; i++) {
            builder.append(random.nextInt(10));
        }
        return builder.toString();
    }
}
